Use linear keyframes to interpolate animated property value linearly between keyframes. More...
#include <kanzi/core.ui/animation/keyframe_animation.hpp>
Public Member Functions | |
TValueType | getValue (const TValueType ¤tValue, float normalizedTime) override |
Returns the value for the animated property at a given time. | |
LinearKeyframe () | |
Constructor. | |
LinearKeyframe (TValueType value) | |
Constructor. | |
Public Member Functions inherited from kanzi::KeyframeAnimation< TValueType >::Keyframe | |
TValueType | getKeyValue () const |
Returns the keyframe value of the animated property. | |
Keyframe () | |
Constructor. | |
Keyframe (TValueType value) | |
Constructor. | |
void | setKeyValue (const TValueType &keyValue) |
Sets the keyframe value for a keyframe. | |
virtual | ~Keyframe () |
Static Public Member Functions | |
static LinearKeyframePtr | create (float value) |
Creates linear keyframe. | |
Use linear keyframes to interpolate animated property value linearly between keyframes.
|
inlineexplicit |
Constructor.
|
inlineexplicit |
Constructor.
|
inlinestatic |
Creates linear keyframe.
value | The keyframe value of the animated property. |
|
inlineoverridevirtual |
Returns the value for the animated property at a given time.
currentValue | The current value of the animated property. |
normalizedTime | The time at which you want to get the value of the animated property. 0.0 corresponds to the time of the previous keyframe. 1.0 corresponds to the time of this keyframe. |
Implements kanzi::KeyframeAnimation< TValueType >::Keyframe.